<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
  <meta charset="UTF-8">
  <title>^^title-楼盘管理-添加</title>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge"/>

  <link rel="stylesheet" href="^^static_url/css/vendor.css">
  <link rel="stylesheet" href="^^static_url/css/1m2.css">
  <style>
    .hobUnitId {
      max-height: 80px;
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      width: 100%;
      min-height: 38px;
      /*max-height: 100px;*/
      overflow-y: scroll;
      padding: 8px 12px;
      font-size: 14px;
      line-height: 1.42857143;
      color: #555;
      background-color: #fff;
      background-image: none;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    .hobUnitId > div {
      cursor: pointer;
      margin: 2px;
      border-radius: 3px;
      border: 1px solid #bbb;
    }

    .unit-active {
      background: #bbb
    }

    .ipt-unit {
      position: absolute;
      top: 0;
      right: -18px;
      line-height: 39px;
    }
  </style>
</head>
<body>
@@include('header.html')
@@include('menu.html')
<div class="content-wrap">
  <ol class="breadcrumb _white">
    <li><a href="./index.html">开盘列表</a></li>
    <li class="active">新建开盘</li>
  </ol>
  <div class="detail-title">
    <div class="detail-title-text">新建开盘</div>
  </div>
  <div class="content">
    <form class="form form-horizontal inner-form" id='form'>
      <div class="form-group form-group-required">
        <label for="dId" class="col-xs-24 col-sm-^^gutter-name control-label">开发商名称</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <select class="form-control" autofocus="off" id="dId" v-model="dId" name="dId" :disabled="isLock"
                  autocomplete="off" ref="select">
            <option value=''>请选择</option>
            <option v-for="developer in dIdList" :value="developer.idStr"
                    v-if="developer.enterInfo && developer.enterInfo.enterpriseName">
              {{ developer.enterInfo.enterpriseName }}
            </option>
          </select>
        </div>
      </div>
      <div class="form-group form-group-required">
        <label for="" class="col-xs-24 col-sm-^^gutter-name control-label">楼盘名称</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <select class="form-control" autofocus="off" id="buildingId" v-model="buildingId" name="buildingId"
                  :disabled="isLock" autocomplete="off">
            <option value=''>请选择</option>
            <option v-for="build in buildingIdList" :value="build.id" v-if="build.dId === dId">
              {{ build.propertyName }}
            </option>
          </select>
        </div>
      </div>
      <div class="form-group form-group-required">
        <label for="" class="col-xs-24 col-sm-^^gutter-name control-label">开盘期</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <select class="form-control" autofocus="off" id="hobPeriod" v-model="hobPeriod" name="hobPeriod"
                  :disabled="isLock" autocomplete="off">
            <option value=''>请选择</option>
            <option v-for="list in hobPeriodList" :value="list">{{list}}</option>
          </select>
        </div>
      </div>
      <div class="form-group form-group-required">
        <label for="" class="col-xs-24 col-sm-^^gutter-name control-label">选择开盘楼栋</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <div class="hobUnitId">
            <div v-for="unit in hobUnitIdList" :data-id="unit.idStr"
                 @click="selectUnit">
              {{unit.hbuNum}}
            </div>
          </div>
        </div>
      </div>
      <div class="form-group form-group-required">
        <label for="" class="col-xs-24 col-sm-^^gutter-name control-label">预计开盘时间</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <input type="text" class="form-control" v-model="hobExpectTime" name="hobExpectTime" :disabled="isLock"
                 ref="hobExpectTime" autocomplete="off">
        </div>
      </div>
      <!--<div class="form-group form-group-required">-->
      <!--<label for="" class="col-xs-24 col-sm-^^gutter-name control-label">具体开盘时间</label>-->
      <!--<div class="col-xs-24 col-sm-^^gutter-value">-->
      <!--<input type="text" class="form-control" v-model="hobSpecificTime" name="hobSpecificTime" :disabled="isLock"-->
      <!--ref="hobSpecificTime" autocomplete="off">-->
      <!--</div>-->
      <!--</div>-->
      <div class="form-group form-group-required">
        <label for="" class="col-xs-24 col-sm-^^gutter-name control-label">开盘方式</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <select class="form-control" autofocus="off" id="hobWay" v-model="hobWay" name="hobWay" :disabled="isLock"
                  autocomplete="off">
            <option value=''>请选择</option>
            <option value="ytj">一体机</option>
            <option value="app-ytj">一体机+APP</option>
          </select>
        </div>
      </div>
      <div v-if="isApp" class="form-group form-group-required">
        <label for="" class="col-xs-24 col-sm-^^gutter-name control-label">订单失效时间</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <input type="text" class="form-control" v-model.number="orderFailureTime" name="orderFailureTime"
                 :disabled="isLock" @keyup="checkCount"
                 ref="hobPreTime" autocomplete="off"><span class="ipt-unit">小时</span>
        </div>
      </div>
      <div class="form-group form-group-required">
        <label for="" class="col-xs-24 col-sm-^^gutter-name control-label">预选时间</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <input type="text" class="form-control" v-model="hobPreTime" name="hobPreTime" :disabled="isLock"
                 ref="hobPreTime" autocomplete="off">
        </div>
      </div>
      <div class="form-group form-group-required">
        <label for="" class="col-xs-24 col-sm-^^gutter-name control-label">预选房源套数</label>
        <div class="col-xs-24 col-sm-^^gutter-value">
          <select class="form-control" autofocus="off" id="hobPreNum" v-model="hobPreNum" name="hobPreNum"
                  :disabled="isLock" autocomplete="off">
            <option value='1'>1</option>
            <option value="2">2</option>
            <option value="3">3</option>
          </select>
        </div>
      </div>
      <div class="form-group">
        <div class="col-xs-24 col-sm-offset-^^gutter-name col-sm-^^gutter-value">
          <button type="submit" class="btn btn-primary btn-h-llg" :disabled="isLock" @click.prevent="submitForm">提交
          </button>
        </div>
      </div>
    </form>
  </div>
</div>
@@include('footer.html')
</body>
<script src="^^static_url/js/vendor.js"></script>
<script src="^^static_url/js/openManage_add.js"></script>
<!--<script src="https://cdn.bootcss.com/bootstrap-select/2.0.0-beta1/js/bootstrap-select.min.js"></script>-->
</html>